var common = require('../common');
var store = common.store;
var getFile = common.getFile;
var data = {
  "result": "success",
  "messages": [],
  "fieldErrors": {},
  "errors": [],
  "data": {

  }
};
var data1 = {
  "result": "success",
  "messages": [],
  "fieldErrors": {},
  "errors": [],
  "data": false
};
module.exports = {
  // mock 请求
  "get /admin/kmRegist/list.do": function(req, res) {
    res.send({
      "result": "success",
      "messages": [],
      "fieldErrors": {},
      "errors": [],
      "data": {
        totalCount: 3, //总页数
        pageNo: 1, //当前页
        pageSize: 10, //每页显示的条数,
        listData: [{ //列表数据
          id: '3333',
          docSubject:"标题",
                reprintNum:"999",//转发总数
                visitNum:"999",//浏览量
                trueRate:"99%",//答题正确率
                docCreateTime:"2014-07-01 12:30:30"

        }, { //列表数据
          id: '444',
          docSubject:"标题",
                reprintNum:"999",//转发总数
                visitNum:"999",//浏览量
                trueRate:"99%",//答题正确率
                docCreateTime:"2014-07-01 12:30:30"

        }, { //列表数据
          id: '444',
          docSubject:"标题",
                reprintNum:"999",//转发总数
                visitNum:"999",//浏览量
                trueRate:"99%",//答题正确率
                docCreateTime:"2014-07-01 12:30:30"

        }]
      }
    });
  },
  "get /admin/kmRegist/view.do": function(req, res) {
    res.send({
      "result": "success",
      "messages": [],
      "fieldErrors": {},
      "errors": [],
      "data": {
        id: '3333',
        docSubject:"标题",
        cateId:"333",//转发总数
        desc:"999",//浏览量
        descAnswer:"99%"//答题正确率
      }
    });
  },
  "post /admin/kmRegist/delete.do": function(req, res) {
    res.send(data);
  },
  "post /admin/kmRegist/save.do": function(req, res) {
    res.send(data);
  }


};
